package org.suyisen.feng.core.confg;

import javax.sql.DataSource;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.web.servlet.config.annotation.EnableWebMvc;

import com.alibaba.druid.pool.DruidDataSource;

/**
 * 
 */
@Configuration
@EnableWebMvc
@EnableDiscoveryClient
@MapperScan("org.suyisen.feng.core.mapper")
public class ICoreDBConfig {
	
	
	@ConfigurationProperties("spring.datasource")
	@Bean
	public DataSource dataSource() {
		DruidDataSource druidDataSource = new DruidDataSource();
		return druidDataSource;
	}
	

}
